﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Sharp.Portal.Other;

namespace Sharp.Portal
{
     /// <summary>
     /// 客户端行颜色定义
     /// </summary>
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
    public class ClientDrawRowAttribute : Attribute
    {
        /// <summary>
        /// 客户端行颜色定义
        /// </summary>
        public ClientDrawRowAttribute()
        {

        }
        /// <summary>
        /// 增加客户端行绘制条件
        /// </summary>
        /// <remark>条件，Javascript 语言描述, 值用 {data} 代替,文本用{text}
        /// 如：
        /// {data} == 0
        /// {data} &gt; 6
        /// {text} &gt;= '2010-10-01' ＆＆ {text} ＜ '2010-10-15'</remark>

        public string Condition { get; set; }
        /// <summary>
        /// Grid 行字体颜色定义枚举
        /// </summary>
        public RowFontColor Color { get; set; }
    }
}